Repository navigation
feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit - #37371
objectstack-fleet[bot] wants to merge 13 commits into
Conversation
…gin-security, lint, scenarios) Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
…st no field vote) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
📓 Docs Drift CheckThis PR changes 6 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 186 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 9bab6c4e4b15546e3ee3a39a1426191e5dd8f22c && git checkout 9bab6c4e4b15546e3ee3a39a1426191e5dd8f22c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 411646562566a1e12b4e0fc3de256192e8302719 bad558d574b997d7bc271793693fab55085331a4 && git checkout -B drift-repro 411646562566a1e12b4e0fc3de256192e8302719 && git merge --no-ff bad558d574b997d7bc271793693fab55085331a4
node scripts/docs-audit/affected-docs.mjs --json 411646562566a1e12b4e0fc3de256192e8302719
|
#36055) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
…iew All and Modify All ADR-0087 D2 entry permission-view-all-fields-beside-record-bypass, a default flip retired from the load path: replayed by os migrate meta --from 18 only. The stored-row seam and the artifact door refuse it by id, so stored sets take the 19 meaning. Step 19 graduates it and carries the semantic entry permission-view-all-modify-all-cast-no-field-vote with the one-step check. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
…ll default flip by id Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
…e entry (#36055) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
… access-matrix snapshot The showcase build's ADR-0090 D6 drift check named five grants this branch added by hand (showcase_auditor on four objects, showcase_ops on showcase_announcement); the snapshot now records them for review. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
… its D3 entry Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ
Requested by Alice · project thread
Fixes #36055
Blocked-by: #37314
Draft. #37314 opens the 19 migration step (
step19,CONVERSIONS_BY_MAJOR[19], thesemantic:19region). When it merges, this branch merges main and adds the rest (see "Still to come"). Until thencheck-adr-0087-registrationis red on purpose: the changeset names the conversion id that the 19 entry will register.Maintainer quick read
viewAllRecords) and Modify All (modifyAllRecords) widen records only. They cast no field vote.viewAllFieldsis the only "every field" channel: read only, never edit, and a set's ownreadable: falserow beats it.viewAllFields: truefromos migrate meta --from 18 --write.viewAllFieldsvotes read only. That includes the built-in admin beside an app set's edit lock (it still reads every field). This is the ruled field-axis split (ruling 6912661484); the D3 entry will name it.What changes
@objectstack/core:superuserFieldVoteis replaced byviewAllFieldsReadVote(sets, object, field).buildEffectiveFieldPermissionsasks it.holdsSuperuserBypassis unchanged and answers the record bypass only.@objectstack/plugin-security:getFieldPermissionsasks the same vote. Explain drops the "superseded by the Modify All Data field vote" branch (andConditionedFieldEntry.supersededBy): a row-conditioned lock binds per row for every caller.@objectstack/lint:security-superuser-field-mask-inertis retired (constant, catalog text, explanation, export).security-cross-set-field-reopenreports only a hidden field another set'sviewAllFieldsre-opens, in all 11 locales. The controlled-by-parent master-reference rule and the roll-up source-visibility rules no longer skip a mask beside Modify All.@objectstack/scenarios: persona-grant scoring no longer treats Modify All as overriding a field lock.@objectstack/spec:viewAllRecords/modifyAllRecords/viewAllFieldsdescriptions state the new meaning (generated reference docs regenerated). The liveness ledger anchorsviewAllFieldsat#viewAllFieldsReadVote.showcase_auditor(four View All entries) and ops'showcase_announcementModify All entry carryviewAllFields: true, migrated by hand.Why
Card #36055, step 3 of the field-axis split (#34365, ruling of record 6912661484): View All / Modify All widen records,
viewAllFieldsreads fields.Still to come (after #37314 merges)
packages/spec/src/conversions/entries/19/permission-view-all-fields-beside-record-bypass.ts: addsviewAllFields: trueto everyobjectsentry (wildcard included) that carriesviewAllRecordsormodifyAllRecordswithout it.retiredFromLoadPath: true, registered inCONVERSIONS_BY_MAJOR[19]andstep19.DEFAULT_FLIPS_NOT_REPLAYED_HERE,packages/metadata-core/src/artifact-forward-conversion.ts) and at stored-row reads (packages/spec/src/conversions/stored.ts), with tests.Verification
Local on 18c15ea (affected tests and the derived gate families; the rest is cited from CI on the same head):
vitest run:@objectstack/coresrc/security75 files / 1493 tests green;@objectstack/lint235 files green;@objectstack/plugin-security289 files / 7277 tests green;@objectstack/scenariosscenario-tagsgreen (itstest/buildandtest/runner/packagesfailures need a packed workspace build and are untouched here);@objectstack/specpermission tests green;packages/cli/test/superuser-bypass-mirror-parity.test.tsgreen.typecheck: core, lint, plugin-security, scenarios green.@objectstack/spec check:generatedgreen after--fix(gen:docs).check:doc-security-posture,check:doc-formula-expressions,check:i18n-stale-fill,check-skills-token-ratchet,check:doc-anchors,check:doc-authoring,check-affected-docs,check:spec-docblock-symbol-anchors,check:issue-citations,check-empty-changeset,check:docs-spec-enumerations,check-changeset-no-major(pre mode).check-adr-0087-registration(the id registers with the 19 entry).check:adr-symbol-anchorsondocs/adr/0066-unified-authorization-model.md:146, which anchorseffective-object-permissions.ts#superuserFieldVote.docs/adr/**is out of this PR's surface; the anchor re-points to#viewAllFieldsReadVotewith the ADR-0066 note below.check:platform-checklist(areas/automation.jsonanchorsFlowItemMoreMenu.tsx#FlowItemMoreMenu; neither file is touched here).Clause-②: yes (narrowing)
Metadata-protocol: semantic
Skills-docs: follow-up owed outside this PR's surface (
skills/**):skills/objectstack-ai/SKILL.md(pitfall 2 says Modify All grants a field edit) andskills/objectstack-data/evals/hooks-security-seeds-datasources.json(an expected output says View All and Modify All re-open a field).ADR-0066 D2 ⑧ end-state note (text for the weekly ADR card #37245)
Follow-ups to file
sales_manager: convert the migratedviewAllFields: trueto explicit field rows (Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-onlyviewAllFieldsbit carries the admin channel (end state, v19) #34365 step 4).Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_011y7As8b4YLdvodeGAQWNTQ